<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>J2ee Questions</title>
</head>
<body>
<h3>Java EE Interview Questions</h3>
<table>
	<tr>
		<td>
		<h5>Can a JSP page instantiate a serialized bean?</h5>
		<p align="Justify">No problem! The useBean action specifies the
		beanName attribute, which can be used for indicating a serialized
		bean.<br>
		<br>
		For example:<br>
		<br>
		&lt;jsp:useBean id="shop" type="shopping.CD" beanName="CD" /&gt;<br>
		&lt;jsp:getProperty name="shop" property="album" /&gt;<br>
		<br>
		A couple of important points to note. Although you would have to name
		your serialized file "filename.ser", you only indicate "filename" as
		the value for the beanName attribute. Also, you will have to place
		your serialized file within the WEB-INFjspbeans directory for it to be
		located by the JSP engine.<br>
		</p>
		</td>
	</tr>
</table>
</body>
</html>